package com.wondertek.web.controller.business;

import com.wondertek.common.base.Result;
import com.wondertek.service.entity.business.CompanyPo;
import com.wondertek.service.service.business.CompanyService;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * @description:
 * @author: qinjianhui
 * @create: 2024-07-16 10:57
 **/
@RestController
@RequestMapping("/backend/business/company/")
@Tag(name = "企业用户管理")
public class CompanyController {
    @Resource
    private CompanyService companyService;

    @GetMapping("/findAll")
    @Operation(summary = "获取企业用户")
    public Result<List<CompanyPo>> findAll(){
        return Result.success(companyService.findAll());
    }

}

